Optimal. Leaf size=191 \[ \frac{(a+b x) (d+e x)^2 (A b-a B)}{2 b^2 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{e x (a+b x) (A b-a B) (b d-a e)}{b^3 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{(a+b x) (A b-a B) (b d-a e)^2 \log (a+b x)}{b^4 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{B (a+b x) (d+e x)^3}{3 b e \sqrt{a^2+2 a b x+b^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.107902, antiderivative size = 191, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.061, Rules used = {770, 77} \[ \frac{(a+b x) (d+e x)^2 (A b-a B)}{2 b^2 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{e x (a+b x) (A b-a B) (b d-a e)}{b^3 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{(a+b x) (A b-a B) (b d-a e)^2 \log (a+b x)}{b^4 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{B (a+b x) (d+e x)^3}{3 b e \sqrt{a^2+2 a b x+b^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 770
Rule 77
Rubi steps
\begin{align*} \int \frac{(A+B x) (d+e x)^2}{\sqrt{a^2+2 a b x+b^2 x^2}} \, dx &=\frac{\left (a b+b^2 x\right ) \int \frac{(A+B x) (d+e x)^2}{a b+b^2 x} \, dx}{\sqrt{a^2+2 a b x+b^2 x^2}}\\ &=\frac{\left (a b+b^2 x\right ) \int \left (\frac{(A b-a B) e (b d-a e)}{b^4}+\frac{(A b-a B) (b d-a e)^2}{b^4 (a+b x)}+\frac{(A b-a B) e (d+e x)}{b^3}+\frac{B (d+e x)^2}{b^2}\right ) \, dx}{\sqrt{a^2+2 a b x+b^2 x^2}}\\ &=\frac{(A b-a B) e (b d-a e) x (a+b x)}{b^3 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{(A b-a B) (a+b x) (d+e x)^2}{2 b^2 \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{B (a+b x) (d+e x)^3}{3 b e \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{(A b-a B) (b d-a e)^2 (a+b x) \log (a+b x)}{b^4 \sqrt{a^2+2 a b x+b^2 x^2}}\\ \end{align*}
Mathematica [A] time = 0.0941073, size = 118, normalized size = 0.62 \[ \frac{(a+b x) \left (b x \left (6 a^2 B e^2-3 a b e (2 A e+4 B d+B e x)+b^2 \left (3 A e (4 d+e x)+2 B \left (3 d^2+3 d e x+e^2 x^2\right )\right )\right )+6 (A b-a B) (b d-a e)^2 \log (a+b x)\right )}{6 b^4 \sqrt{(a+b x)^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.011, size = 212, normalized size = 1.1 \begin{align*}{\frac{ \left ( bx+a \right ) \left ( 2\,B{x}^{3}{b}^{3}{e}^{2}+3\,A{x}^{2}{b}^{3}{e}^{2}-3\,B{x}^{2}a{b}^{2}{e}^{2}+6\,B{x}^{2}{b}^{3}de+6\,A\ln \left ( bx+a \right ){a}^{2}b{e}^{2}-12\,A\ln \left ( bx+a \right ) a{b}^{2}de+6\,A\ln \left ( bx+a \right ){b}^{3}{d}^{2}-6\,Axa{b}^{2}{e}^{2}+12\,Ax{b}^{3}de-6\,B\ln \left ( bx+a \right ){a}^{3}{e}^{2}+12\,B\ln \left ( bx+a \right ){a}^{2}bde-6\,B\ln \left ( bx+a \right ) a{b}^{2}{d}^{2}+6\,Bx{a}^{2}b{e}^{2}-12\,Bxa{b}^{2}de+6\,Bx{b}^{3}{d}^{2} \right ) }{6\,{b}^{4}}{\frac{1}{\sqrt{ \left ( bx+a \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.974402, size = 400, normalized size = 2.09 \begin{align*} -\frac{5 \, B a^{3} b e^{2} \log \left (x + \frac{a}{b}\right )}{3 \,{\left (b^{2}\right )}^{\frac{5}{2}}} + \frac{5 \, B a^{2} e^{2} x}{3 \,{\left (b^{2}\right )}^{\frac{3}{2}}} - \frac{5 \, B a e^{2} x^{2}}{6 \, \sqrt{b^{2}} b} + A \sqrt{\frac{1}{b^{2}}} d^{2} \log \left (x + \frac{a}{b}\right ) + \frac{2 \, B a^{3} \sqrt{\frac{1}{b^{2}}} e^{2} \log \left (x + \frac{a}{b}\right )}{3 \, b^{3}} + \frac{\sqrt{b^{2} x^{2} + 2 \, a b x + a^{2}} B e^{2} x^{2}}{3 \, b^{2}} + \frac{{\left (2 \, B d e + A e^{2}\right )} a^{2} b^{2} \log \left (x + \frac{a}{b}\right )}{{\left (b^{2}\right )}^{\frac{5}{2}}} - \frac{{\left (2 \, B d e + A e^{2}\right )} a b x}{{\left (b^{2}\right )}^{\frac{3}{2}}} + \frac{{\left (2 \, B d e + A e^{2}\right )} x^{2}}{2 \, \sqrt{b^{2}}} - \frac{{\left (B d^{2} + 2 \, A d e\right )} a \sqrt{\frac{1}{b^{2}}} \log \left (x + \frac{a}{b}\right )}{b} - \frac{2 \, \sqrt{b^{2} x^{2} + 2 \, a b x + a^{2}} B a^{2} e^{2}}{3 \, b^{4}} + \frac{\sqrt{b^{2} x^{2} + 2 \, a b x + a^{2}}{\left (B d^{2} + 2 \, A d e\right )}}{b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.24659, size = 319, normalized size = 1.67 \begin{align*} \frac{2 \, B b^{3} e^{2} x^{3} + 3 \,{\left (2 \, B b^{3} d e -{\left (B a b^{2} - A b^{3}\right )} e^{2}\right )} x^{2} + 6 \,{\left (B b^{3} d^{2} - 2 \,{\left (B a b^{2} - A b^{3}\right )} d e +{\left (B a^{2} b - A a b^{2}\right )} e^{2}\right )} x - 6 \,{\left ({\left (B a b^{2} - A b^{3}\right )} d^{2} - 2 \,{\left (B a^{2} b - A a b^{2}\right )} d e +{\left (B a^{3} - A a^{2} b\right )} e^{2}\right )} \log \left (b x + a\right )}{6 \, b^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.675601, size = 117, normalized size = 0.61 \begin{align*} \frac{B e^{2} x^{3}}{3 b} - \frac{x^{2} \left (- A b e^{2} + B a e^{2} - 2 B b d e\right )}{2 b^{2}} + \frac{x \left (- A a b e^{2} + 2 A b^{2} d e + B a^{2} e^{2} - 2 B a b d e + B b^{2} d^{2}\right )}{b^{3}} - \frac{\left (- A b + B a\right ) \left (a e - b d\right )^{2} \log{\left (a + b x \right )}}{b^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13253, size = 343, normalized size = 1.8 \begin{align*} \frac{2 \, B b^{2} x^{3} e^{2} \mathrm{sgn}\left (b x + a\right ) + 6 \, B b^{2} d x^{2} e \mathrm{sgn}\left (b x + a\right ) + 6 \, B b^{2} d^{2} x \mathrm{sgn}\left (b x + a\right ) - 3 \, B a b x^{2} e^{2} \mathrm{sgn}\left (b x + a\right ) + 3 \, A b^{2} x^{2} e^{2} \mathrm{sgn}\left (b x + a\right ) - 12 \, B a b d x e \mathrm{sgn}\left (b x + a\right ) + 12 \, A b^{2} d x e \mathrm{sgn}\left (b x + a\right ) + 6 \, B a^{2} x e^{2} \mathrm{sgn}\left (b x + a\right ) - 6 \, A a b x e^{2} \mathrm{sgn}\left (b x + a\right )}{6 \, b^{3}} - \frac{{\left (B a b^{2} d^{2} \mathrm{sgn}\left (b x + a\right ) - A b^{3} d^{2} \mathrm{sgn}\left (b x + a\right ) - 2 \, B a^{2} b d e \mathrm{sgn}\left (b x + a\right ) + 2 \, A a b^{2} d e \mathrm{sgn}\left (b x + a\right ) + B a^{3} e^{2} \mathrm{sgn}\left (b x + a\right ) - A a^{2} b e^{2} \mathrm{sgn}\left (b x + a\right )\right )} \log \left ({\left | b x + a \right |}\right )}{b^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]